<script setup>

import ConnectUs from "@/layout/components/ConnectUs.vue";
</script>

<template>
  <main style="padding: 5px">
    <van-swipe style="border-radius: 3px;overflow: hidden" :autoplay="3000" indicator-color="white">
      <van-swipe-item>
        <van-image width="100%" fit="cover" height="180px" src="https://oss.toubutu.com/yexing/image/lb_1.jpg"/>
      </van-swipe-item>
      <van-swipe-item>
        <van-image width="100%" height="180px" fit="cover" src="https://oss.toubutu.com/yexing/image/lb_2.jpg"/>
      </van-swipe-item>
      <van-swipe-item>
        <van-image width="100%" height="180px" fit="cover" src="https://oss.toubutu.com/yexing/image/lb_3.JPG"/>
      </van-swipe-item>
    </van-swipe>
    <div style="margin-top: 15px">
      <p class="banner-title">公司产品</p>
      <div class="main-product-container">
        <div class="card">
          <van-image src="https://oss.toubutu.com/yexing/image/mp1.png"/>
        </div>
        <div class="card">
          <van-image src="https://oss.toubutu.com/yexing/image/mp2.png"/>
        </div>
        <div class="card">
          <van-image src="https://oss.toubutu.com/yexing/image/mp3.png"/>
        </div>
        <div class="card">
          <van-image src="https://oss.toubutu.com/yexing/image/mp4.png"/>
        </div>
      </div>
    </div>
  </main>
  <ConnectUs/>
</template>

<style scoped>
.main-product-container {

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.banner-title{
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  height: 36px;
  text-align: center;
  line-height: 36px;
}

.card {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 12px 32px 4px rgba(0, 0, 0, .04), 0 8px 20px rgba(0, 0, 0, .08);
}
</style>